package com.suse.service.admin.edu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.suse.service.admin.edu.model.entity.Course;
import com.suse.service.admin.edu.model.param.CourseQueryQueryParam;
import com.suse.service.admin.edu.model.vo.CoursePublishInfoVo;
import com.suse.service.admin.edu.model.vo.TableCourseVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-11
 */
public interface CourseMapper extends BaseMapper<Course> {

    Page<TableCourseVo> getCourseTableList(@Param("param") CourseQueryQueryParam courseQueryParam, Page<TableCourseVo> page);

    CoursePublishInfoVo getCoursePublishInfoById(@Param("id") String id);

    int publishCourseById(@Param("id") String id);

}
